Page({
  data: {
    college: '',
    major: '',
    candidateType: ''
  },
  handleInput(e) {
    const field = e.currentTarget.dataset.field;
    this.setData({ [field]: e.detail.value });
  },
  nextPage() {
    const exam_candidate_info = wx.getStorageInfoSync('exam_candidate_info');
    Object.assign(exam_candidate_info, {
      college:this.data.college,
      major:this.data.major,
      candidateType:this.data.candidateType
    });
    wx.setStorageSync('exam_candidate_info', exam_candidate_info)
    wx.navigateTo({
      url: '../page3/page3'
    });
  }
});